/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-20 11:23:28
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-20 15:24:54
 * @别瞎看: 你个无脑牛马
 */
public class Monkey extends Animal2 implements IJumpAble,ICycleAble{
    //成员属性
    private String name;
    //构造器
    public Monkey(){

    }
    public Monkey(String color,int age,String name){
        super(color,age);
        this.name=name;
    }
    //重写父类基继承方法
    @Override
    public void eat(){
        System.out.println("猴子"+name+"喜欢吃桃");
    }
    @Override
    public void sleep(){
        System.out.println("猴子"+name+"喜欢睡树上");
    }
    //重写接口获取方法
    @Override
    public void jump() {
        System.out.println("猴子"+name+"能跳火圈");
    }
    public void cycle(){
        System.out.println("猴子"+name+"能骑自行车");
    }
}